import request from '@/utils/request'
export function getEmployee(params) {
  return request.get('/sys/user', { params })
}
export function getDelEmployee(id) {
  return request.delete('/sys/user/' + id)
}
export function getAddEmployee(data) {
  return request.post('/sys/user', data)
}
export function importEmployee(data) {
  return request({
    url: '/sys/user/batch',
    method: 'post',
    data
  })
}
export function getEmployeeDetail(id) {
  return request.get('/sys/user/' + id)
}
export function getUpdateEmployee(data) {
  return request.put('/sys/user/' + data.id, data)
}
export function assignRoles(data) {
  return request({
    url: '/sys/user/assignRoles',
    method: 'put',
    data
  })
}
